package org.sssc2009.guessxcess.client;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class ComplexIndividual extends Individual implements Serializable {

	private static final long serialVersionUID = -5694841241493275666L;
	private List<String> ingredients;

	public ComplexIndividual(String name) {
		super(name);
		ingredients = new ArrayList<String>();
	}

	public ComplexIndividual(String name, List<String> ingredients) {
		super(name);
		this.ingredients = ingredients;
	}

	public ComplexIndividual(String name, String... ingredients) {
		this(name, Arrays.asList(ingredients));
	}

	public String toString() {
		return getName();
	};

	public Integer getId() {
		return (Integer) get("id");
	}

	public String getName() {
		return (String) get("name");
	}

	public List<String> getIngredients() {
		return ingredients;
	}

}
